package com.bbzn.user.client.dao.role;

import com.bbzn.user.client.dataobject.UserRole;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface UserRoleMapper {
    int insert(UserRole record);

    int insertOrUpdate(UserRole record);

    int insertOrUpdateSelective(UserRole record);

    int insertSelective(UserRole record);

    List<UserRole> findByAll(UserRole userRole);

    int batchInsert(@Param("list") List<UserRole> list);

    int removeByUserId(@Param("userId") Long userId);

    int getRoleIdByUserId(@Param("userId")Long userId);
}